/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rie06.openvoip.client.IHM.home;

import com.rie06.openvoip.client.IHM.communication.CommunicationController;
import com.rie06.openvoip.client.IHM.home.InterfaceClient;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.*;
import org.apache.log4j.Logger;

/**
 * @author sylvain
 */
public final class PanelAddContact extends JPanel{
    
    private ImageIcon iconCall;
    private JButton callButton;
    private InterfaceClient interfaceClient;
    private CommunicationController communicationController;
    private static final Logger logger = Logger.getLogger(PanelAddContact.class);
    
     public PanelAddContact(InterfaceClient interfaceClient, CommunicationController communicationController){  
         
         
                this.setPreferredSize(new Dimension (400,50));
                this.interfaceClient = interfaceClient;
                this.communicationController = communicationController;
	

                iconCall = new ImageIcon("images/nouvel_appel.png");   
                callButton = new JButton(iconCall);
                callButton.addActionListener(this.communicationController);
                callButton.setActionCommand("addContact");
                this.add(callButton);
          
     }
   
}
